<template>
	<xDatePicker
		v-model="mixin_value"
		type="daterange"
		v-bind="$attrs"
		range-separator="-"
		value-format="yyyy-MM-dd"
		start-placeholder="开始日期"
		end-placeholder="结束日期" />
</template>
<script lang="ts">
export default async function () {
	const { mixins } = await _.$importVue("/common/ui-x/common/ItemMixins.vue");
	return (() => {
		return {
			mixins: [mixins],
			props: ["value", "configs", "options"],
			computed: {
				privateValue: {
					get() {
						return this.value;
					},
					set(val) {
						this.$emit("change", val);
					}
				}
			}
		};
	})();
}
</script>
